/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.consultation.entity;

import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;

/**
 * questionEntity
 * @author question
 * @version 2017-06-05
 */
public class BeautyConsultationOrderQuestion extends DataEntity<BeautyConsultationOrderQuestion> {

    private static final long serialVersionUID = 1L;

    private Long orderId; // order_id

    private String questionTitle; // 问题内容

    private String questionNo; // 问题编号

    private String questionImage; // 问题主图

    private String answerType; // 答案类型，单选-文字(single-text)、单选-图文(single-image-text)、多选-文字(mult-text)、多选-图文(mult-image-text)、填空(blank)、多选-价格(mult-price)

    private Long institutionId; // 企业ID

    private String answerTitle;

    private String answerId;

    private String recommendId;

    private String pId;

    private String answerTypeName;

    private String answerImage;

    public String getAnswerImage() {
        return answerImage;
    }

    public void setAnswerImage(String answerImage) {
        this.answerImage = answerImage;
    }

    public String getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(String recommendId) {
        this.recommendId = recommendId;
    }

    public String getAnswerTypeName() {
        return answerTypeName;
    }

    public void setAnswerTypeName(String answerTypeName) {
        this.answerTypeName = answerTypeName;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getAnswerTitle() {
        return answerTitle;
    }

    public void setAnswerTitle(String answerTitle) {
        this.answerTitle = answerTitle;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    private List<BeautyConsultationOrderAnswer> answerList;

    public List<BeautyConsultationOrderAnswer> getAnswerList() {
        return answerList;
    }

    public void setAnswerList(List<BeautyConsultationOrderAnswer> answerList) {
        this.answerList = answerList;
    }

    public BeautyConsultationOrderQuestion() {
        super();
    }

    public BeautyConsultationOrderQuestion(String id) {
        super(id);
    }

    @NotNull(message = "order_id不能为空")
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @Length(min = 0, max = 255, message = "问题内容长度必须介于 0 和 255 之间")
    public String getQuestionTitle() {
        return questionTitle;
    }

    public void setQuestionTitle(String questionTitle) {
        this.questionTitle = questionTitle;
    }

    @Length(min = 0, max = 11, message = "问题编号长度必须介于 0 和 11 之间")
    public String getQuestionNo() {
        return questionNo;
    }

    public void setQuestionNo(String questionNo) {
        this.questionNo = questionNo;
    }

    @Length(min = 0, max = 255, message = "问题主图长度必须介于 0 和 255 之间")
    public String getQuestionImage() {
        return questionImage;
    }

    public void setQuestionImage(String questionImage) {
        this.questionImage = questionImage;
    }

    @Length(
        min = 0,
        max = 20,
        message = "答案类型，单选-文字(single-text)、单选-图文(single-image-text)、多选-文字(mult-text)、多选-图文(mult-image-text)、填空(blank)、多选-价格(mult-price)长度必须介于 0 和 20 之间")
    public String getAnswerType() {
        return answerType;
    }

    public void setAnswerType(String answerType) {
        this.answerType = answerType;
    }

    public Long getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

}